import 'package:flutter/material.dart';

class ImageViewPage extends StatelessWidget {
  final double width;
  final double height;
  final String url;

  const ImageViewPage(
      {super.key,
      this.width = double.infinity,
      this.height = 200,
      required this.url});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: width,
      height: height,
      child: Image.network(url,fit: BoxFit.cover,),
    );
  }
}
